/**
 * @Project POL3Cay
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2011 TMH. All rights reserved
 * @Createdate Feb 25, 2011
 * @Createtime 10:41:47 AM
 */

package renders
{
	import events.BaCayEvent;

	import flash.display.Sprite;

	import models.card.BaCayHand;
	import models.card.Card;

	public class BaCayHandRender extends BaseHandRenderer
	{
		private var _baCayHand:BaCayHand;

		public function BaCayHandRender(baCayHand:BaCayHand = null)
		{
			super();

			_radius = 100;

			_baCayHand = baCayHand;

			_baCayHand.addEventListener(BaCayEvent.RECEIVE_CARD, receiveCardHandler);
		}

		public function receiveCardHandler(event:BaCayEvent):void
		{
			this.receiveCard(event.hgData.card, event.hgData.turn); // change view!!!
		}
	}
}